﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Aplicacion/Vista/ModeloPrincipal.master" AutoEventWireup="true" CodeFile="EditarMisDatos.aspx.cs" Inherits="Aplicacion_Vista_EditarMisDatos" %>

<asp:Content ID="Content1" ContentPlaceHolderID="titulo" Runat="Server">
<title>Administraci&oacute;n de Bodegas - Mis datos</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ruta" Runat="Server">
<strong style="font-size:12px;">Inicio --> Principal <%:(String)Session["nombreRol"]%> --> Mis datos "<%:Request.QueryString["n"]%>"</strong>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="informacionSesion" Runat="Server">
<div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                            Informaci&oacute;n de sesi&oacute;n 
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <div>
                                            
                                            <table>
                                                <tr>
                                                    <td colspan="2">Usted se encuentra conectado como :</td>
                                                </tr>    
                                                <tr>
                                                    <td colspan = "2"><strong><%:(String)Session["nombreUsuario"]%></strong></td>
                                                </tr>
                                                <tr>
                                                    <td colspan = "2">Y su rol en el sistema es :</td>
                                                </tr>
                                                <tr>
                                                    <td colspan = "2"><strong><%:(String)Session["nombreRol"]%></strong></td>
                                                </tr>
                                                 <tr>
                                                    <td colspan = "2"><asp:LinkButton ID="LinkButton1" runat="server" 
                                                            onclick="LinkButton1_Click">Cerrar Sesi&oacute;n</asp:LinkButton></td>
                                                </tr> 
                                                </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
</asp:Content>


<asp:Content ID="Content4" ContentPlaceHolderID="menuLateral" Runat="Server">
<div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                            Men&uacute;
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                                <div class="BlockContent">
                                <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body">
                                        <ul>
                                                <li><a href="CambiarContraseña.aspx">Cambiar Contraseña</a></li>        
                                                <li><a href="PrincipalAdministracion.aspx">Volver atr&aacute;s</a></li>
                                                
                                        </ul>  
                                    </div>
                                </div>
                            </div>
                        </div>
</asp:Content>


<asp:Content ID="Content5" ContentPlaceHolderID="contenidoPagina" Runat="Server">

<div class="Post">
                            <div class="Post-tl"></div>
                            <div class="Post-tr"><div></div></div>
                            <div class="Post-bl"><div></div></div>
                            <div class="Post-br"><div></div></div>
                            <div class="Post-tc"><div></div></div>
                            <div class="Post-br"><div></div></div>
                            <div class="Post-tc"><div></div></div>
                            <div class="Post-bc"><div></div></div>
                            <div class="Post-cl"><div></div></div>
                            <div class="Post-cr"><div></div></div>
                            <div class="Post-cc"></div>
                            <div class="Post-body">
                        <div class="Post-inner">
                            <h2 class="PostHeaderIcon-wrapper">
                                <span class="PostHeader">Bienvenido <%:Session["nombreRol"]%></span>
                            </h2>
                            <div class="PostContent">
                                
                                <h1>Modificar Mis datos</h1>
                                
                                
                                <p>Realice las modificaciones de los datos que desee cambiar:<asp:TextBox 
                                        ID="TextBox6" runat="server" Visible="false"></asp:TextBox>
                                </p> 
                                
                                    
                                <div class="Block">
                            <div class="Block-body">
                                <div class="BlockHeader">
                                    <div class="header-tag-icon">
                                        <div class="BlockHeader-text">
                                            Formulario de modificaci&oacute;n de datos de usuario
                                        </div>
                                    </div>
                                    <div class="l"></div>
                                    <div class="r"><div></div></div>
                                </div>
                               <div class="BlockContent">
                                    <div class="BlockContent-tl"></div>
                                    <div class="BlockContent-tr"><div></div></div>
                                    <div class="BlockContent-bl"><div></div></div>
                                    <div class="BlockContent-br"><div></div></div>
                                    <div class="BlockContent-tc"><div></div></div>
                                    <div class="BlockContent-bc"><div></div></div>
                                    <div class="BlockContent-cl"><div></div></div>
                                    <div class="BlockContent-cr"><div></div></div>
                                    <div class="BlockContent-cc"></div>
                                    <div class="BlockContent-body" >
                                    <table >
                                        <tr>
                                            <td>
                                                Nombre de Usuario  
                                            </td>
                                            <td>
                                            :
                                            </td>
                                            <td>
                                            &nbsp
                                            <strong><%:(String)Session["nombreUsuario"]%></strong>
                                            </td>
                                            <td></td>
                                            <td><asp:Label ID="Label7" runat="server" Text="Campos Actuales" ForeColor = "Brown"></asp:Label>    </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Primer Nombre  
                                            </td>
                                            <td>
                                            :
                                            </td>
                                            <td>
                                                <asp:TextBox ID="TextBox1" runat="server" Width="185px"></asp:TextBox>
                                            </td>
                                            <td style = "color : Red">
                                                <b>&nbsp&nbsp&nbsp*</b>
                                            </td>
                                            <td><asp:Label ID="Label1" runat="server" Text="Label" ForeColor = "Brown"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Apellido Paterno 
                                            </td>
                                            <td>
                                            :
                                            </td>
                                            <td >
                                                <asp:TextBox ID="TextBox2" runat="server" Width="185px"></asp:TextBox>
                                            </td>
                                            <td style = "color : Red">
                                                <b> &nbsp&nbsp&nbsp* </b>
                                            </td>
                                            <td><asp:Label ID="Label2" runat="server" Text="Label" ForeColor = "Brown"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Apellido Materno 
                                            </td>
                                            <td>
                                            :
                                            </td>
                                            <td >
                                                <asp:TextBox ID="TextBox3" runat="server" Width="185px"></asp:TextBox>
                                            </td>
                                            <td style = "color : Red">
                                                <b> &nbsp&nbsp&nbsp* </b>
                                            </td>
                                            <td><asp:Label ID="Label3" runat="server" Text="Label" ForeColor = "Brown"></asp:Label></td>
                                        </tr> 
                                        <tr>
                                            <td>
                                                Telef&oacute;no de contacto
                                            </td>
                                            <td>
                                            :
                                            </td>
                                            <td >
                                                <asp:TextBox ID="TextBox4" runat="server" Width="185px"></asp:TextBox>
                                            </td>
                                            <td style = "color : Red">
                                                <b> &nbsp&nbsp&nbsp* </b>
                                            </td>
                                            <td><asp:Label ID="Label4" runat="server" Text="Label" ForeColor = "Brown"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Correo electr&oacute;nico 
                                            </td>
                                            <td>
                                            :
                                            </td>
                                            <td >
                                                <asp:TextBox ID="TextBox5" runat="server" Width="185px"></asp:TextBox>
                                            </td>
                                            <td style = "color : Red">
                                                <b> &nbsp&nbsp&nbsp* </b>
                                            </td>
                                            <td><asp:Label ID="Label5" runat="server" Text="Label" ForeColor = "Brown"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td aling="left">
                                                <asp:Button ID="Button1"  runat="server" Text="Aceptar Cambios" 
                                                    onclick="Button1_Click" />
                                            </td>
                                            <td>
                                            </td>
                                            <td style = "color : Red">
                                                <b> (*) Campos Obligatorios</b>
                                            </td>
                                            
                                        </tr>
                                        
                                        <tr>
                                            <p style="color:Red;">
                                            </p>
                                            <p style="color:Red;">
                                            <%
                                                if ((new ControladorEditarMisDatos().getDataMsg()) != "" && TextBox6.Text == "1" )
                                            %>
                                            </p>
                                            <p style="color:Red;">
                                            <%
                                                if ((new ControladorEditarMisDatos().getOpMsg()) != "" && (new ControladorEditarMisDatos().getErrorCode()) == "" && TextBox6.Text == "1")
                                                {
                                                    Response.Write(new ControladorEditarMisDatos().getOpMsg());
                                                }  
                                            %>
                                            </p>
                                            <p style="color:Green;">
                                            <%
                                            if ((new ControladorEditarMisDatos().getOpMsg()) != "" && (new ControladorEditarMisDatos().getErrorCode()) == "1" && TextBox6.Text == "1")
                                            {
                                                Response.Write(new ControladorEditarMisDatos().getOpMsg());
                                            } 
                                            %> 

                                        

                                     </p>
                                        </tr>

                                  </table>
                                
                                </div>
                            </div>
                        </div>                                  
                            </div>
                                                  
                            </div>
</div>


</asp:Content>

